package com.qihoo.finance.backup;

public class Result {

    /**
     * 调用是否存在错误
     */
    private final Boolean hasError;

    /**
     * 错误码
     */
    private String errorCode;

    /**
     * 错误描述
     */
    private String errorMsg;

    /**
     * 出现错误记录最后一个断点
     */
    private String lastRow;

    public Result() {
        this.hasError = false;
    }

    public Result(String errorCode, String errorMsg) {
        this.hasError = true;
        this.errorCode = errorCode;
        this.errorMsg = errorMsg;
    }

    public Result(String errorCode, String errorMsg, String lastRow) {
        this.hasError = true;
        this.errorCode = errorCode;
        this.errorMsg = errorMsg;
        this.lastRow = lastRow;
    }

    public Boolean hasError() {
        return hasError;
    }

    public String getErrorCode() {
        return errorCode;
    }

    public String getErrorMsg() {
        return errorMsg;
    }

    public String getLastRow() {
        return lastRow;
    }
}
